package xkp.lesson3;

public class Demo1 {
	public static void main(String[] args) {
		//Person person = new Person(10);
		Person person = new Person(22,"张三");
		Person person2 = new Person(person);
		System.out.println(person2.sayInfo());
		System.out.println(person.getAge());
		System.out.println(person.getName());
		//Student student = new Student();
		Student student = new Student(20, "张三", 101);
		System.out.println(student.sayInfo());
	}
}
